package grape.crm.rest.customerbelong.vo;

import grape.base.service.comp.api.ICompService;
import grape.base.service.dept.api.IDeptService;
import grape.base.service.user.api.IUserService;
import grape.common.rest.vo.BaseIdVo;
import grape.common.service.trans.TransBy;
import grape.crm.service.customer.api.ICustomerService;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 客户归属表
 * </p>
 *
 * @author yangwei
 * @since 2020-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="客户归属表数据响应对象")
public class CustomerBelongVo extends BaseIdVo<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "客户id")
    private String customerId;

    @TransBy(type = ICustomerService.trans_customer_name_else_appellation,byFieldName = "customerId")
    @ApiModelProperty(value = "客户姓名")
    private String customerName;


    @ApiModelProperty(value = "归属用户id")
    private String userId;

    @TransBy(type = IUserService.trans_type_userNickname,byFieldName = "userId")
    @ApiModelProperty(value = "归属用户昵称")
    private String userNickname;

    @ApiModelProperty(value = "归属用户的公司id")
    private String compId;

    @TransBy(type = ICompService.trans_compName,byFieldName = "companyId")
    @ApiModelProperty(value = "归属用户所在公司名称")
    private String compName;

    @ApiModelProperty(value = "归属用户的部门id")
    private String deptId;

    @TransBy(type = IDeptService.trans_deptName,byFieldName = "deptId")
    @ApiModelProperty(value = "归属用户所在部门名称")
    private String deptName;

    @ApiModelProperty(value = "归属用户的部门父级")
    private String deptParentId;

    @TransBy(type = IDeptService.trans_deptName,byFieldName = "deptParentId")
    @ApiModelProperty(value = "归属用户的部门父级名称")
    private String deptParentName;

    @ApiModelProperty(value = "归属用户的部门LEVEL为1的父id")
    private String deptParentId1;

    @ApiModelProperty(value = "归属用户的部门LEVEL为2的父id")
    private String deptParentId2;

    @ApiModelProperty(value = "归属用户的部门LEVEL为3的父id")
    private String deptParentId3;

    @ApiModelProperty(value = "归属用户的部门LEVEL为4的父id")
    private String deptParentId4;

    @ApiModelProperty(value = "归属用户的部门LEVEL为5的父id")
    private String deptParentId5;

    @ApiModelProperty(value = "归属用户的部门LEVEL为6的父id")
    private String deptParentId6;

    @ApiModelProperty(value = "归属用户的部门LEVEL为7的父id")
    private String deptParentId7;

    @ApiModelProperty(value = "归属用户的部门LEVEL为8的父id")
    private String deptParentId8;

    @ApiModelProperty(value = "归属用户的部门LEVEL为9的父id")
    private String deptParentId9;

    @ApiModelProperty(value = "归属用户的部门LEVEL为10的父id")
    private String deptParentId10;


}
